# -*-coding:utf-8 -*-
# File  : deviceAdd_api.py
# Time  ：2021/12/8 14:27
# Author：author name

from api.manage.manage_base import ManageBase


class DeviceAddApi(ManageBase):
    def __init__(self):
        """添加设备接口"""
        super().__init__()
        self.url = self.host + "cloudlottery-manage/device/add"
        self.json = {"audioType": 0, "asrType": 2, "vpnType": "none", "vpnAccountInfo": "", "deviceSn": "zidonghua001",
                     "operatorId": "d87b0103b0914374ba26444aac39ceff",
                     "deviceModeId": "9fee91ce410c4506aa66d3d9e44ac1e1", "address": "江岸大头测试街道", "remark": "",
                     "saleProvince": "420000", "saleCity": "420100", "province": "湖北省", "city": "武汉市", "area": "江岸区",
                     "isopenvoice": 1, "isopenface": 1, "isOnlineSpeech": 1, "saleLotteryType": 1, "ishavebattery": 0,
                     "chartType": 0, "agentId": "a9c8e6e52ee44e8d802eddb7c63e759b", "ticketDistributoerNum": 1,
                     "lotteryPlatform": "SUICAI", "otLotteryPlatform": "GEDELIBANG", "ylAuthCode": "",
                     "thermalAdValue": 90, "sileLoginPass": "", "sileUserId": "", "boolCtAward": 0, "boolOtAward": 0}
        self.method = "post"
